import request from '@/utils/request'

export function page(params) {
  return request({
    url: 'ajax.organizational/showProjects',
    method: 'get',
    params
  })
}

export function addproject(data){
  return request({
    url:'ajax.organizational/addproject',
    method:'post',
    data
  })
}
export function editproject(data){
  return request({
    url:'ajax.organizational/editproject',
    method:'post',
    data
  }) 
}
export function delproject(id){
  return request({
    url:'ajax.organizational/delproject',
    method:'post',
    data:{id}
  })
}
export function addsubproject(data){
  return request({
    url:'ajax.organizational/addsubproject',
    method:'post',
    data
  })
}
export function getsubproject(pid){
  return request({
    url:'ajax.organizational/getsubproject',
    method:'post',
    data:{pid}
  })
}
